home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 7 / Apprentice-Release7.iso / Source Code / C / Applications / µSim 1.1 / FabLibsƒ / InitCursorBalloon.c < prev    next >
Encoding:
C/C++ Source or Header  |  1997-05-25  |  953 b   |  37 lines  |  [TEXT/CWIE]

  1. /*
  2. Copyright © 1993-1997 by Fabrizio Oddone
  3. ••• ••• ••• ••• ••• ••• ••• ••• ••• •••
  4. This source code is distributed as freeware: you can copy, exchange, modify this
  5. code as you wish. You may include this code in any kind of application: freeware,
  6. shareware, or commercial, provided that full credits are given.
  7. You may not sell or distribute this code for profit.
  8. */
  9.  
  10.  
  11. #include    "InitCursorBalloon.h"
  12. #include    "CursorBalloon.h"
  13. #include    "FabWList.h"
  14.  
  15. #if    !defined(FabNoSegmentDirectives)
  16. #pragma segment Init
  17. #endif
  18.  
  19. /* Initializes the manager; should be called after initializing QuickDraw, etc.
  20. should be put into the initialization segment of the application */
  21.  
  22. OSErr InitCursorBalloonManager(void)
  23. {
  24. register OSErr err = appMemFullErr;
  25.  
  26. InitFabWListManager();
  27. mouseRgn = NewRgn();
  28. wideOpenRgn = NewRgn();
  29. if (mouseRgn && wideOpenRgn) {
  30.     ForceMouseMovedEvent();
  31.     SetRectRgn(wideOpenRgn, -32765, -32765, 32765, 32765);
  32.     err = noErr;
  33.     }
  34. return err;
  35. }
  36.  
  37.